package org.jeecg.modules.power.device.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备变动记录表
 * @Author: jeecg-boot
 * @Date:   2024-07-17
 * @Version: V1.0
 */
@Data
@TableName("yl_device_records")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yl_device_records对象", description="设备变动记录表")
public class YlDeviceRecords implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**单号*/
	@Excel(name = "单号", width = 15)
    @ApiModelProperty(value = "单号")
    private String transferNumber;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
	/**设备ID*/
	@Excel(name = "设备ID", width = 15)
    @ApiModelProperty(value = "设备ID")
    private String deviceId;
	/**设备mac*/
	@Excel(name = "设备mac", width = 15)
    @ApiModelProperty(value = "设备mac")
    private String deviceMac;
	/**操作类型（字典transfer_device_type）*/
	@Excel(name = "操作类型（字典transfer_device_type）", width = 15)
    @ApiModelProperty(value = "操作类型（字典transfer_device_type）")
    @Dict(dicCode = "transfer_device_type")
    private String transferType;
	/**接收方ID*/
	@Excel(name = "接收方ID", width = 15)
    @ApiModelProperty(value = "接收方ID")
    private String receiveId;
	/**接收方名称*/
	@Excel(name = "接收方名称", width = 15)
    @ApiModelProperty(value = "接收方名称")
    private String receiveName;
	/**转出方ID*/
	@Excel(name = "转出方ID", width = 15)
    @ApiModelProperty(value = "转出方ID")
    private String transferId;
	/**转出方名称*/
	@Excel(name = "转出方名称", width = 15)
    @ApiModelProperty(value = "转出方名称")
    private String transferName;
	/**备注说明*/
	@Excel(name = "备注说明", width = 15)
    @ApiModelProperty(value = "备注说明")
    private String transferRemark;
	/**提交转移时间*/
	@Excel(name = "提交转移时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交转移时间")
    private Date transferTime;
	/**状态1待接收2确认接收3拒绝接收*/
	@Excel(name = "状态1待接收2确认接收3拒绝接收", width = 15)
    @ApiModelProperty(value = "状态1待接收2确认接收3拒绝接收")
    @Dict(dicCode = "check_status")
    private Integer transferStatus;
	/**设备来源1仓库2BD3门店（与设备表的device_status保持一致，目前保修退库涉及从门店退库还是从BD退库，用于资产一览统计）*/
	@Excel(name = "设备来源", width = 15)
    @ApiModelProperty(value = "设备来源")
    @Dict(dicCode = "source_type")
    private Integer sourceType;
	/**拒绝原因*/
	@Excel(name = "拒绝原因", width = 15)
    @ApiModelProperty(value = "拒绝原因")
    private String refuseReason;
	/**拒绝时间*/
	@Excel(name = "拒绝时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "拒绝时间")
    private Date refuseTime;
    /**是否审核1时2否*/
    @Excel(name = "是否审核", width = 15)
    @ApiModelProperty(value = "是否审核")
    private java.lang.Integer isCheck;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
